package com.hx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *
 * @version 1.0
 * @date 2022-03-07
 **/
@Controller
public class HelloController {

    @RequestMapping("/hello")
    public String hello(Model model){
        System.out.println("HelloController hello------->");
        model.addAttribute("username", "jack");
        return "success";
    }

}
